package com.pandorasoft.shop

/**
 * 
 * @author qintao
 * 店铺
 */
class Shop {

	/*
	 * Default (injected) attributes of GORM
	 */
	//	Long	id
	String name
	String province  //省
	String location  //地点
	String tel  //电话
	String phone //手机
	String googleMap //google地图
	Date	dateCreated
	Date	lastUpdated

	static belongsTo	= [company:Company]	// tells GORM to delete this object if the "parent" is deleted.
	static hasOne		= [shopType:ShopType]
	static hasMany		= [employees:Employee,consumers:Consumer]
	//	static mappedBy		= []

	static mapping = {
	}

	static constraints = {
		name()
		province()
		location()
		tel()
		phone()
		googleMap()
	}

	/*
	 * Methods of the Domain Class
	 */
}
